/*
 * Copyright (c) 2006-2021, RT-Thread Development Team
 *
 * SPDX-License-Identifier: Apache-2.0
 *
 * Change Logs:
 * Date           Author       Notes
 * 2022-05-17     fanlulin       the first version
 */

#include "mlcd.h"
static rt_thread_t lcd = RT_NULL;
//LCD屏幕显示内容
//NO Fire,NO Danger
static void lcd_entry(void *parameter)
{


    rt_hw_lcd_init();
    lcd_clear(WHITE);
    lcd_show_string(0,0,24,"Iot Fire Monitoring");
    lcd_draw_picture(60, 25, 200, 200, (rt_uint16_t *)Pro_image);


}

int lcd_thread(void){
    lcd = rt_thread_create("lcd",
                            lcd_entry, RT_NULL,
                            THREAD_STACK_SIZE,
                            THREAD_PRIORITY, THREAD_TIMESLICE);
    if (lcd != RT_NULL){
        rt_thread_startup(lcd);
        rt_kprintf("lcd thread start successfully\r\n");
    }

    else{
        rt_kprintf("lcd thread start failed\r\n");
    }
    return 0;
}
